package com.qdc.datacenters.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;


/**
 * 会话消息(ChatContactMsg)表实体类
 *
 * @author danmo
 * @since 2024-02-28 17:24:23
 */
@EqualsAndHashCode(callSuper = true)
@Schema
@Data
@SuppressWarnings("serial")
@TableName("chat_contact_msg_extend")
public class ChatContactMsgExtend extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 140047427996563537L;

    /**
     * 主键id
     */

    @Schema(description = "主键id")
    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * 消息id
     */
    @Schema(description = "消息id")
    @TableField("msg_id")
    private Long msgId;

    /**
     * 发送人id
     */
    @Schema(description = "发送人id")
    @TableField("from_id")
    private String fromId;

    @Schema(description = "发送人名称")
    @TableField("form_name")
    private String formName;

    @Schema(description = "发送人性别 0-未知 1-男性 2-女性")
    @TableField("from_sex")
    private Integer fromSex;

    @Schema(description = "发送人头像")
    @TableField("from_avatar")
    private String fromAvatar;

    /**
     * 接收人id
     */
    @Schema(description = "接收人id")
    @TableField("receiver_id")
    private String receiverId;


    @Schema(description = "接收人名称")
    @TableField("receiver_name")
    private String receiverName;

    @Schema(description = "接收人头像")
    @TableField("receiver_avatar")
    private String receiverAvatar;

    @Schema(description = "接收人性别 0-未知 1-男性 2-女性")
    @TableField("receiver_sex")
    private Integer receiverSex;

    /**
     * 群聊id
     */
    @Schema(description = "群聊id")
    @TableField("room_id")
    private String roomId;


    @Schema(description = "群聊名称")
    @TableField("room_name")
    private String roomName;

}

